#include "osgqtapplication.h"

#include <QtWidgets/QVBoxLayout>

#include "osgQtWidget.h"

osgQtApplication::osgQtApplication(QWidget *parent)
    : QMainWindow(parent)
{
    ui.setupUi(this);
    this->setMouseTracking(true);

    mOSGWidget = new OSGWidget;
    this->setFocusProxy(mOSGWidget);
    mOSGWidget->setMouseTracking(true);
    mOSGWidget->setFocusPolicy(Qt::WheelFocus);

    QVBoxLayout* layout = new QVBoxLayout(ui.centralWidget);
    layout->addWidget(mOSGWidget);

    mRender = new OSGRender;
    mRender->setWidget(mOSGWidget);
}

osgQtApplication::~osgQtApplication()
{

}
